@font-face {
  font-family: 'kubegems-sample';
  src: url('../fonts/kubegems-sample.ttf');
}

#opengems {
  font-family: Poppins;
}

/**
 * 公共全局样式
 */
html {
  overflow: -moz-scrollbars-none;
  -ms-overflow-style: none;
  scrollbar-width: 0 !important;
}

html::-webkit-scrollbar {
  width: 0 !important;
}

.kubegems__full-right {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translate(-0%, -50%);
}

.kubegems__top-right {
  position: absolute;
  right: 12px;
  top: 0%;
  transform: translate(-0%, -0%);
}

.kubegems__full-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.kubegems__full-bottom {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translate(-50%, 0%);
}

.kubegems__fixed {
  position: fixed;
}

.kubegems__full-height {
  height: 100%;
}

.kubegems__break-all {
  word-break: break-word;
  white-space: inherit;
}

.kubegems__clear-float {
  clear: both;
}

.kubegems__form-width {
  width: 405px;
}
.kubegems__three-form-width {
  width: 265px;
}
.kubegems__long-width {
  width: 820px;
}
.kubegems__two-width {
  width: 400px;
}
.kubegems__three-width {
  width: 250px;
}
.kubegems__min-width {
  width: 80px;
  word-break: break-all;
}
.kubegems__word-all-break {
  word-break: break-all;
  white-space: break-spaces;
}

.kubegems__data-pre {
  color: #5f5f53;
  padding: 10px;
  font-weight: 500;
  overflow-x: auto;
}

.kubegems__tool-card-menu {
  top: auto !important;
  bottom: 65px;
  z-index: 20 !important;
}

.terminal {
  display: inline-block;
  width: 100%;
  outline: medium none;
  padding: 5px 10px;
}

.terminal .xterm-viewport {
  border-radius: 0;
}

.terminal .xterm-text-layer {
  border-radius: 0;
}

.kubegems__overlay {
  opacity: 0.1;
  background-color: rgb(33, 33, 33);
  border-color: rgb(33, 33, 33);
  position: absolute;
  z-index: 10;
  margin: auto;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.kubegems__forminform {
  position: absolute;
  left: 0;
  top: 20%;
  // transform: translate(0%, 100%);
  padding: 0 16px;
  z-index: 12;
  right: 0;
  margin: auto;
}

.kubegems__expand-transition {
  z-index: 15;
}

.kubegems__pointer {
  cursor: pointer;
}

.apexcharts-tooltip-text {
  max-width: 400px;
  word-break: break-all;
  white-space: break-spaces;
  z-index: 9999;
}

.kubegems__absolute-middle {
  position: absolute;
  top: 50%;
  transform: translate(-0%, -50%);
}

.kubegems__attach-position {
  position: relative !important;
}

.kubegems__label-class-padding {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.kubegems__table-nowrap-cell {
  white-space: nowrap;
  width: 1px;
}

.kubegems__text {
  color: rgba(0, 0, 0, 0.7) !important;
  font-weight: initial !important;
}

.kubegems__wizard-footer {
  position: fixed;
  display: flex;
  align-items: center;
  bottom: 8px;
}
.kubegems__wizard-tab-content {
  padding: 0;
  margin: 0;
  overflow-y: hidden;
  overflow-x: hidden;
}

.kubegems__waiting-flashing {
  animation-name: kubegems__animate-waiting-flash;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

@keyframes kubegems__animate-waiting-flash {
  from {
    background-color: #fb8c00;
  }
  to {
    background-color: white;
  }
}

.kubegems__waiting-circle-flashing {
  animation-name: kubegems__animate-waiting-circle-flash;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-direction: normal;
}

@keyframes kubegems__animate-waiting-circle-flash {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.kubegems__waiting-flashing-front {
  animation-name: kubegems__animate-waiting-flash-front;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

@keyframes kubegems__animate-waiting-flash-front {
  from {
    color: #fb8c00;
  }
  to {
    color: white;
  }
}

$i: 24;

@while $i > 0 {
  .kubegems__h-#{$i} {
    height: (100% / 24) * $i;
  }
  .kubegems__w-#{$i} {
    width: (100% / 24) * $i;
  }
  $i: $i - 1;
}

.kubegems__table-row-pointer tbody tr {
  cursor: pointer;
}

.kubegems__tip {
  max-height: 300px;
  overflow-y: auto;
}

.kubegems__inline_flex {
  display: inline-flex;
}

.kubegems__rounded_small {
  border-radius: 3px;
}

.kubegems__relative {
  position: relative;
}
